﻿using Microsoft.EntityFrameworkCore;
using Traceability.Domain;
using Traceability.Domain.Domain;
using Traceability.Domain.FarmingMsgs;
using Traceability.Domain.Goodss;
using Traceability.Domain.Ingredients;
using Traceability.Domain.Machinings;
using Traceability.Domain.Slaughters;
using Traceability.Domain.Users;

namespace Traceability.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class TraceabilitiesDbContext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        public TraceabilitiesDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<Account> Accounts { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<Dictionary> Dictionaries { get; set; }
        public DbSet<Goods> Goods { get; set; }
        public DbSet<ReportFig> ReportFigs { get; set; }
        public DbSet<Cultivation> Cultivations { get; set; }
        public DbSet<Immunity> Immunities { get; set; }
        public DbSet<Enterprise> Enterprise { get; set; }
        public DbSet<Slaughter> Slaughters { get; set; }
        public DbSet<SlaughteEnterprise> SlaughteEnterprises { get; set; }
        public DbSet<Machining> Machinings { get; set; }
        public DbSet<Material> Materials { get; set; }

        public DbSet<Accessories> Accessoriess { get; set; }
        public DbSet<Additive> Additives { get; set; }
        public DbSet<PackeMaterial> PackeMaterials { get; set; }
        public DbSet<MachiningEnterprise> MachiningEnterprises { get; set; }
    }
}
